<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title></title>
	<script src="./vue.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
	<!--view-->
	<div id="app">
		{{ msg }}
		<input v-model.trim="value">
		{{value | trim}}
	</div>
	<script>
		// 创建一个vue实例
		//vm
		new Vue({
			el: '#app',

			//model
			data: {
				msg: '信息',
				value: 'sadf     sdfafsdaf'
			}
		})
	</script>
</body>

</html>